<?php
	require_once './controller/placeController.php';
	require_once ('webView.php');
	$result = getNewsetPlaceController();
	if(is_array($result)){
		echo "<ul class='newest-place'>";
		foreach($result as $key => $value) {
			echo "<li class='one_third'>";
			if ($value->url_image == "")
				echo "<div class='thumb'><a href='#'><img src='".$avatar_default."' alt='' /></a></div>";
			else
				echo "<div class='thumb'><a href='#'><img src='".$value->url_image."' alt='' title='".$value->place_name."' /></a></div>";
			echo "<div class='content'><div class='contentinner'>";
			echo "<div styly='font-weight: bold;'>".$value->place_name."</div>"; 
			echo "<div>".$value->place_name."</div>"; 
			echo "</div></div>";
			echo "</li>";
		}
		echo "</ul>";
	}
?>